package com.example.mypark.view

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.example.mypark.R
import com.tencent.mmkv.MMKV

class MainActivity:AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val isLogin = MMKV.defaultMMKV().decodeBool("login", false)
        if(!isLogin){
            ARouter.getInstance().build("/user/LoginActivity").navigation()
        }
    }
}